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

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.
@@ -54,9 +54,9 @@ let PdIconPanelButton = class extends LitElement {
54
54
  if (this.panelButton) {
55
55
  this._togglePanel();
56
56
  } else {
57
- this.dispatchEvent(
58
- new CustomEvent("button-clicked")
59
- );
57
+ this.dispatchEvent(new CustomEvent("button-clicked", {
58
+ detail: this.value
59
+ }));
60
60
  }
61
61
  }
62
62
  _togglePanel() {
@@ -192,6 +192,9 @@ __decorateClass([
192
192
  __decorateClass([
193
193
  property({ type: String })
194
194
  ], PdIconPanelButton.prototype, "buttonText", 2);
195
+ __decorateClass([
196
+ property({ type: String })
197
+ ], PdIconPanelButton.prototype, "value", 2);
195
198
  __decorateClass([
196
199
  property({ type: Boolean })
197
200
  ], PdIconPanelButton.prototype, "panelButton", 2);
@@ -2,6 +2,7 @@ import { CSSResultGroup, LitElement } from 'lit';
2
2
  export declare class PdIconPanelButton extends LitElement {
3
3
  pdButtonIcon?: string;
4
4
  buttonText: string;
5
+ value?: string;
5
6
  panelButton: boolean;
6
7
  private _panelOpen;
7
8
  static styles: CSSResultGroup;
@@ -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,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,iBAuHO;IAGpB,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.17",
6
+ "version": "0.5.18",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
9
  "types": "./dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  ".": "./dist/index.js",
12
12
  "./pd-panel-viewer": "./dist/pd-panel-viewer.js",
13
13
  "./pd-panel": "./dist/pd-panel.js",
14
- "./pd-pd-icon-panel-button": "./dist/pd-icon-panel-button.js"
14
+ "./pd-icon-panel-button": "./dist/pd-icon-panel-button.js"
15
15
  },
16
16
  "files": [
17
17
  "dist/",