@progressive-development/pd-spa-helper 0.5.18 → 0.5.20

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.
@@ -17,6 +17,17 @@ let PdIconPanelButton = class extends LitElement {
17
17
  this.buttonText = "Ok";
18
18
  this.panelButton = false;
19
19
  this._panelOpen = false;
20
+ this._closePanel = () => {
21
+ this._panelOpen = false;
22
+ };
23
+ }
24
+ connectedCallback() {
25
+ super.connectedCallback();
26
+ window.addEventListener("close-button-panel-event", this._closePanel);
27
+ }
28
+ disconnectedCallback() {
29
+ window.removeEventListener("close-button-panel-event", this._closePanel);
30
+ super.disconnectedCallback();
20
31
  }
21
32
  // ${this._daySyncDisabled ? "element-hint" : ""} => for div class
22
33
  render() {
@@ -72,10 +83,11 @@ PdIconPanelButton.styles = [
72
83
  :host {
73
84
  display: inline-block; /* Verhindert, dass :host die volle Breite bekommt */
74
85
  position: relative;
86
+ width: var(--pd-icon-button-width, auto);
75
87
  }
76
88
 
77
89
  .icon-button-style {
78
- z-index: 2;
90
+ z-index: 6;
79
91
  background: #58a linear-gradient(hsla(0, 0%, 100%, 0.2), transparent);
80
92
  background-color: var(--pd-icon-button-bgcol, #0c6fc5);
81
93
  padding: 0.3em 0.8em;
@@ -85,7 +97,7 @@ PdIconPanelButton.styles = [
85
97
  --pd-icon-size: 20px;
86
98
  color: var(--pd-icon-button-txtcol, white);
87
99
  text-shadow: 0 - 0.05em 0.05em rgba(0, 0, 0, 0.5);
88
- font-size: 125%;
100
+ font-size: var(--pd-icon-button-font-size, 125%);
89
101
  line-height: 1.5;
90
102
  }
91
103
 
@@ -124,8 +136,8 @@ PdIconPanelButton.styles = [
124
136
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
125
137
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
126
138
  opacity: 0;
127
- z-index: 1;
128
- }
139
+ z-index: 5;
140
+ }
129
141
 
130
142
  .panel.open {
131
143
  transform: scaleY(1);
@@ -6,6 +6,9 @@ export declare class PdIconPanelButton extends LitElement {
6
6
  panelButton: boolean;
7
7
  private _panelOpen;
8
8
  static styles: CSSResultGroup;
9
+ connectedCallback(): void;
10
+ disconnectedCallback(): void;
11
+ private _closePanel;
9
12
  render(): import('lit-html').TemplateResult<1>;
10
13
  private _onKeyDown;
11
14
  private _buttonClicked;
@@ -1 +1 @@
1
- {"version":3,"file":"pd-icon-panel-button.d.ts","sourceRoot":"","sources":["../../src/tmpown/pd-icon-panel-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,0CAA0C,CAAC;AAElD,qBACa,iBAAkB,SAAQ,UAAU;IAG/C,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,UAAU,EAAE,MAAM,CAAQ;IAG1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,OAAO,CAAS;IAG7B,OAAO,CAAC,UAAU,CAAkB;IAEpC,MAAM,CAAC,MAAM,iBAuHO;IAGpB,MAAM;IA0BN,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,YAAY;CAOrB"}
1
+ {"version":3,"file":"pd-icon-panel-button.d.ts","sourceRoot":"","sources":["../../src/tmpown/pd-icon-panel-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,0CAA0C,CAAC;AAElD,qBACa,iBAAkB,SAAQ,UAAU;IAG/C,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,UAAU,EAAE,MAAM,CAAQ;IAG1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,OAAO,CAAS;IAG7B,OAAO,CAAC,UAAU,CAAkB;IAEpC,MAAM,CAAC,MAAM,iBAwHO;IAEpB,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,WAAW,CAEjB;IAGF,MAAM;IA0BN,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,YAAY;CAOrB"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent pd-spa-helper following open-wc recommendations",
4
4
  "author": "PD Progressive Development",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
- "version": "0.5.18",
6
+ "version": "0.5.20",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
9
  "types": "./dist/index.d.ts",