@shoper/phoenix_design_system 1.15.10 → 1.15.11
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/build/cjs/packages/phoenix/src/components/form/input/input_copy_button.js +4 -3
- package/build/cjs/packages/phoenix/src/components/form/input/input_copy_button.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_copy_button.d.ts +1 -0
- package/build/esm/packages/phoenix/src/components/form/input/input_copy_button.js +4 -3
- package/build/esm/packages/phoenix/src/components/form/input/input_copy_button.js.map +1 -1
- package/package.json +1 -1
|
@@ -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(
|
|
15
|
+
super();
|
|
16
16
|
this.hasBeenCopied = false;
|
|
17
17
|
this.copyValue = '';
|
|
18
18
|
this._$inputToCopy = null;
|
|
@@ -34,13 +34,13 @@ exports.HInputCopyButton = class HInputCopyButton extends phoenix_light_lit_elem
|
|
|
34
34
|
this.copyValue = '';
|
|
35
35
|
this.hasBeenCopied = false;
|
|
36
36
|
};
|
|
37
|
+
this._btnController = new btn_controller.BtnController(this, this._handleCopyToClipboard);
|
|
37
38
|
}
|
|
38
39
|
connectedCallback() {
|
|
39
40
|
super.connectedCallback();
|
|
40
41
|
this._$inputToCopy = document.querySelector(`#${this.inputId}`);
|
|
41
42
|
if (!this._$inputToCopy)
|
|
42
43
|
return;
|
|
43
|
-
this._btnController = new btn_controller.BtnController(this, this._handleCopyToClipboard);
|
|
44
44
|
this.addEventListener('click', this._handleCopyToClipboard);
|
|
45
45
|
}
|
|
46
46
|
async _copyToClipboard() {
|
|
@@ -94,6 +94,7 @@ tslib_es6.__decorate([
|
|
|
94
94
|
tslib_es6.__metadata("design:type", Object)
|
|
95
95
|
], exports.HInputCopyButton.prototype, "copyValue", void 0);
|
|
96
96
|
exports.HInputCopyButton = tslib_es6.__decorate([
|
|
97
|
-
phoenix_custom_element.phoenixCustomElement('h-input-copy-button')
|
|
97
|
+
phoenix_custom_element.phoenixCustomElement('h-input-copy-button'),
|
|
98
|
+
tslib_es6.__metadata("design:paramtypes", [])
|
|
98
99
|
], exports.HInputCopyButton);
|
|
99
100
|
//# sourceMappingURL=input_copy_button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -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(
|
|
11
|
+
super();
|
|
12
12
|
this.hasBeenCopied = false;
|
|
13
13
|
this.copyValue = '';
|
|
14
14
|
this._$inputToCopy = null;
|
|
@@ -30,13 +30,13 @@ let HInputCopyButton = class HInputCopyButton extends PhoenixLightLitElement {
|
|
|
30
30
|
this.copyValue = '';
|
|
31
31
|
this.hasBeenCopied = false;
|
|
32
32
|
};
|
|
33
|
+
this._btnController = new BtnController(this, this._handleCopyToClipboard);
|
|
33
34
|
}
|
|
34
35
|
connectedCallback() {
|
|
35
36
|
super.connectedCallback();
|
|
36
37
|
this._$inputToCopy = document.querySelector(`#${this.inputId}`);
|
|
37
38
|
if (!this._$inputToCopy)
|
|
38
39
|
return;
|
|
39
|
-
this._btnController = new BtnController(this, this._handleCopyToClipboard);
|
|
40
40
|
this.addEventListener('click', this._handleCopyToClipboard);
|
|
41
41
|
}
|
|
42
42
|
async _copyToClipboard() {
|
|
@@ -90,7 +90,8 @@ __decorate([
|
|
|
90
90
|
__metadata("design:type", Object)
|
|
91
91
|
], HInputCopyButton.prototype, "copyValue", void 0);
|
|
92
92
|
HInputCopyButton = __decorate([
|
|
93
|
-
phoenixCustomElement('h-input-copy-button')
|
|
93
|
+
phoenixCustomElement('h-input-copy-button'),
|
|
94
|
+
__metadata("design:paramtypes", [])
|
|
94
95
|
], HInputCopyButton);
|
|
95
96
|
|
|
96
97
|
export { HInputCopyButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|