@shoper/phoenix_design_system 1.15.9-2 → 1.15.9-3

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.
@@ -12,7 +12,7 @@ var input_constants = require('./input_constants.js');
12
12
 
13
13
  exports.HInputCopyButton = class HInputCopyButton extends phoenix_light_lit_element.PhoenixLightLitElement {
14
14
  constructor() {
15
- super(...arguments);
15
+ super();
16
16
  this.hasBeenCopied = false;
17
17
  this.copyValue = '';
18
18
  this._$inputToCopy = null;
@@ -23,7 +23,6 @@ exports.HInputCopyButton = class HInputCopyButton extends phoenix_light_lit_elem
23
23
  ev.stopPropagation();
24
24
  this._$inputToCopy.select();
25
25
  this.copyValue = this._$inputToCopy.value;
26
- console.log(this._$inputToCopy);
27
26
  await this._copyToClipboard();
28
27
  };
29
28
  this._resetCopyStateAfterTimeout = () => {
@@ -38,13 +37,13 @@ exports.HInputCopyButton = class HInputCopyButton extends phoenix_light_lit_elem
38
37
  this.copyValue = '';
39
38
  this.hasBeenCopied = false;
40
39
  };
40
+ this._btnController = new btn_controller.BtnController(this, this._handleCopyToClipboard);
41
41
  }
42
42
  connectedCallback() {
43
43
  super.connectedCallback();
44
44
  this._$inputToCopy = document.querySelector(`#${this.inputId}`);
45
45
  if (!this._$inputToCopy)
46
46
  return;
47
- this._btnController = new btn_controller.BtnController(this, this._handleCopyToClipboard);
48
47
  this.addEventListener('click', this._handleCopyToClipboard);
49
48
  }
50
49
  async _copyToClipboard() {
@@ -99,6 +98,7 @@ tslib_es6.__decorate([
99
98
  tslib_es6.__metadata("design:type", Object)
100
99
  ], exports.HInputCopyButton.prototype, "copyValue", void 0);
101
100
  exports.HInputCopyButton = tslib_es6.__decorate([
102
- phoenix_custom_element.phoenixCustomElement('h-input-copy-button')
101
+ phoenix_custom_element.phoenixCustomElement('h-input-copy-button'),
102
+ tslib_es6.__metadata("design:paramtypes", [])
103
103
  ], exports.HInputCopyButton);
104
104
  //# sourceMappingURL=input_copy_button.js.map
@@ -7,6 +7,7 @@ export declare class HInputCopyButton extends PhoenixLightLitElement {
7
7
  copyValue: string;
8
8
  private _$inputToCopy;
9
9
  private _btnController;
10
+ constructor();
10
11
  connectedCallback(): void;
11
12
  private _handleCopyToClipboard;
12
13
  private _copyToClipboard;
@@ -8,7 +8,7 @@ import { INPUT_CONTROL_EVENTS } from './input_constants.js';
8
8
 
9
9
  let HInputCopyButton = class HInputCopyButton extends PhoenixLightLitElement {
10
10
  constructor() {
11
- super(...arguments);
11
+ super();
12
12
  this.hasBeenCopied = false;
13
13
  this.copyValue = '';
14
14
  this._$inputToCopy = null;
@@ -19,7 +19,6 @@ let HInputCopyButton = class HInputCopyButton extends PhoenixLightLitElement {
19
19
  ev.stopPropagation();
20
20
  this._$inputToCopy.select();
21
21
  this.copyValue = this._$inputToCopy.value;
22
- console.log(this._$inputToCopy);
23
22
  await this._copyToClipboard();
24
23
  };
25
24
  this._resetCopyStateAfterTimeout = () => {
@@ -34,13 +33,13 @@ let HInputCopyButton = class HInputCopyButton extends PhoenixLightLitElement {
34
33
  this.copyValue = '';
35
34
  this.hasBeenCopied = false;
36
35
  };
36
+ this._btnController = new BtnController(this, this._handleCopyToClipboard);
37
37
  }
38
38
  connectedCallback() {
39
39
  super.connectedCallback();
40
40
  this._$inputToCopy = document.querySelector(`#${this.inputId}`);
41
41
  if (!this._$inputToCopy)
42
42
  return;
43
- this._btnController = new BtnController(this, this._handleCopyToClipboard);
44
43
  this.addEventListener('click', this._handleCopyToClipboard);
45
44
  }
46
45
  async _copyToClipboard() {
@@ -95,7 +94,8 @@ __decorate([
95
94
  __metadata("design:type", Object)
96
95
  ], HInputCopyButton.prototype, "copyValue", void 0);
97
96
  HInputCopyButton = __decorate([
98
- phoenixCustomElement('h-input-copy-button')
97
+ phoenixCustomElement('h-input-copy-button'),
98
+ __metadata("design:paramtypes", [])
99
99
  ], HInputCopyButton);
100
100
 
101
101
  export { HInputCopyButton };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.15.9-2",
5
+ "version": "1.15.9-3",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",