@telia-ace/widget-components-widget-header-flamingo 1.1.109 → 1.1.110-rc.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.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-BIVRFqo5.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-CXguw-h3.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (e) => {
2
- e.registerComponent("widget-header", import("./widget-header-CttiVZ2C.mjs"));
2
+ e.registerComponent("widget-header", import("./widget-header-BckRdWk8.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.1.109",
3
+ "version": "1.1.110-rc.1",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.109",
6
+ "@telia-ace/widget-core-flamingo": "1.1.110-rc.1",
7
7
  "@teliads/components": "^22.1.1",
8
8
  "@teliads/icons": "^8.4.0",
9
9
  "@lit-labs/motion": "^1.0.6",
@@ -3601,6 +3601,33 @@ const ii = Ni(S), ye = class ye extends ii {
3601
3601
  >
3602
3602
  <telia-icon svg=${ys.svg}></telia-icon>
3603
3603
  </button>
3604
+ ${this.optionsIsVisible ? b` <div
3605
+ class="options-menu"
3606
+ ${_t(this.optionsRef)}
3607
+ ${Mi({
3608
+ keyframeOptions: { duration: 120 },
3609
+ in: je,
3610
+ out: je,
3611
+ stabilizeOut: !0,
3612
+ skipInitial: !1
3613
+ })}
3614
+ >
3615
+ ${this.options.options.map((h) => b`<button
3616
+ class="options-menu__item"
3617
+ data-testid="${h.key}"
3618
+ @click=${() => {
3619
+ h.closeOnClick && this._onToggleOptionsMenuClick(), h.onClick(), this.requestUpdate();
3620
+ }}
3621
+ ?disabled="${!h.enabled}"
3622
+ >
3623
+ ${h.icon ? b`<telia-icon
3624
+ class="option-icon"
3625
+ svg=${h.icon}
3626
+ size="sm"
3627
+ ></telia-icon>` : p}
3628
+ ${h.label}
3629
+ </button>`)}
3630
+ </div>` : p}
3604
3631
  ${o ? p : b`<button
3605
3632
  @click=${this._onMinimizeClick}
3606
3633
  class="widget-header__action-button"
@@ -3610,34 +3637,6 @@ const ii = Ni(S), ye = class ye extends ii {
3610
3637
  <telia-icon svg=${ms.svg}></telia-icon>
3611
3638
  </button>`}
3612
3639
  </div>
3613
-
3614
- ${this.optionsIsVisible ? b` <div
3615
- class="options-menu"
3616
- ${_t(this.optionsRef)}
3617
- ${Mi({
3618
- keyframeOptions: { duration: 120 },
3619
- in: je,
3620
- out: je,
3621
- stabilizeOut: !0,
3622
- skipInitial: !1
3623
- })}
3624
- >
3625
- ${this.options.options.map((h) => b`<button
3626
- class="options-menu__item"
3627
- data-testid="${h.key}"
3628
- @click=${() => {
3629
- h.closeOnClick && this._onToggleOptionsMenuClick(), h.onClick(), this.requestUpdate();
3630
- }}
3631
- ?disabled="${!h.enabled}"
3632
- >
3633
- ${h.icon ? b`<telia-icon
3634
- class="option-icon"
3635
- svg=${h.icon}
3636
- size="sm"
3637
- ></telia-icon>` : p}
3638
- ${h.label}
3639
- </button>`)}
3640
- </div>` : p}
3641
3640
  </div>`;
3642
3641
  }
3643
3642
  };
@@ -464,6 +464,25 @@
464
464
  >
465
465
  <telia-icon svg=${ys.svg}></telia-icon>
466
466
  </button>
467
+ ${this.optionsIsVisible?b` <div
468
+ class="options-menu"
469
+ ${wt(this.optionsRef)}
470
+ ${Mi({keyframeOptions:{duration:120},in:je,out:je,stabilizeOut:!0,skipInitial:!1})}
471
+ >
472
+ ${this.options.options.map(h=>b`<button
473
+ class="options-menu__item"
474
+ data-testid="${h.key}"
475
+ @click=${()=>{h.closeOnClick&&this._onToggleOptionsMenuClick(),h.onClick(),this.requestUpdate()}}
476
+ ?disabled="${!h.enabled}"
477
+ >
478
+ ${h.icon?b`<telia-icon
479
+ class="option-icon"
480
+ svg=${h.icon}
481
+ size="sm"
482
+ ></telia-icon>`:p}
483
+ ${h.label}
484
+ </button>`)}
485
+ </div>`:p}
467
486
  ${o?p:b`<button
468
487
  @click=${this._onMinimizeClick}
469
488
  class="widget-header__action-button"
@@ -473,26 +492,6 @@
473
492
  <telia-icon svg=${ms.svg}></telia-icon>
474
493
  </button>`}
475
494
  </div>
476
-
477
- ${this.optionsIsVisible?b` <div
478
- class="options-menu"
479
- ${wt(this.optionsRef)}
480
- ${Mi({keyframeOptions:{duration:120},in:je,out:je,stabilizeOut:!0,skipInitial:!1})}
481
- >
482
- ${this.options.options.map(h=>b`<button
483
- class="options-menu__item"
484
- data-testid="${h.key}"
485
- @click=${()=>{h.closeOnClick&&this._onToggleOptionsMenuClick(),h.onClick(),this.requestUpdate()}}
486
- ?disabled="${!h.enabled}"
487
- >
488
- ${h.icon?b`<telia-icon
489
- class="option-icon"
490
- svg=${h.icon}
491
- size="sm"
492
- ></telia-icon>`:p}
493
- ${h.label}
494
- </button>`)}
495
- </div>`:p}
496
495
  </div>`}};ye.styles=[ii.styles||[],j`
497
496
  :host {
498
497
  --header-text-color: var(--text-on-primary-background);