@shoper/phoenix_design_system 1.10.2 → 1.10.3-0

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.
@@ -34,7 +34,8 @@ const INPUT_CONTROL_CSS_CLASSES = {
34
34
  const INPUT_CONTROL_EVENTS = {
35
35
  change: 'change',
36
36
  input: 'input',
37
- keyup: 'keyup'
37
+ keyup: 'keyup',
38
+ copy: 'copy'
38
39
  };
39
40
  const INPUT_PROPS_TO_SYNC = {
40
41
  placeholder: 'placeholder'
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -27,6 +27,9 @@ class BaseMessage extends phoenix_light_lit_element.PhoenixLightLitElement {
27
27
  this._positionMessage = () => {
28
28
  requestAnimationFrame(() => {
29
29
  var _a;
30
+ // tu coś zrobiłem
31
+ // trzeba zbadać czy na starej wersji kiedy tego jeszcze nie było działało poprawnie
32
+ // bo obecnie tooltipy w modalach i dropdownach się nie pokazują pomimo poprawnego pozycjonowania
30
33
  (_a = this._$messageContent) === null || _a === void 0 ? void 0 : _a.setAttribute('direction', this._positionController.position(true));
31
34
  });
32
35
  };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -10,12 +10,12 @@ var base_message_constants = require('./base_message_constants.js');
10
10
 
11
11
  class BaseMessageContent extends phoenix_light_lit_element.PhoenixLightLitElement {
12
12
  constructor() {
13
- super(...arguments);
13
+ super();
14
14
  this.portalTarget = base_message_constants.DEFAULT_MESSAGE_PORTAL_NAME;
15
+ this.slot = base_message_constants.MESSAGE_CONTENT_SLOT_NAME;
15
16
  }
16
17
  connectedCallback() {
17
18
  super.connectedCallback();
18
- this.slot = base_message_constants.MESSAGE_CONTENT_SLOT_NAME;
19
19
  this._setupAriaAttributes();
20
20
  }
21
21
  _setupAriaAttributes() {
@@ -30,6 +30,7 @@ export declare const INPUT_CONTROL_EVENTS: {
30
30
  readonly change: "change";
31
31
  readonly input: "input";
32
32
  readonly keyup: "keyup";
33
+ readonly copy: "copy";
33
34
  };
34
35
  export declare const INPUT_PROPS_TO_SYNC: {
35
36
  readonly placeholder: "placeholder";
@@ -30,7 +30,8 @@ const INPUT_CONTROL_CSS_CLASSES = {
30
30
  const INPUT_CONTROL_EVENTS = {
31
31
  change: 'change',
32
32
  input: 'input',
33
- keyup: 'keyup'
33
+ keyup: 'keyup',
34
+ copy: 'copy'
34
35
  };
35
36
  const INPUT_PROPS_TO_SYNC = {
36
37
  placeholder: 'placeholder'
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,18 @@
1
+ import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
2
+ import { TemplateResult } from 'lit';
3
+ export declare class HInputCopyButton extends PhoenixLightLitElement {
4
+ inputId: string;
5
+ inputTextSuccess: string;
6
+ inputTextError: string;
7
+ copied: boolean;
8
+ copyValue: string;
9
+ connectedCallback(): void;
10
+ protected render(): TemplateResult;
11
+ private _handleCopyToClipboard;
12
+ private _copyToClipboard;
13
+ private _copyToClipboardFallback;
14
+ private _handleCopySuccess;
15
+ private _handleCopyError;
16
+ private _handleInputCopyEvent;
17
+ private _runCopyAnimation;
18
+ }
@@ -0,0 +1,109 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { PhoenixLightLitElement } from '@phoenixRoot/core/phoenix_light_lit_element/phoenix_light_lit_element';
3
+ import { phoenixCustomElement } from '@phoenixRoot/core/decorators/phoenix_custom_element';
4
+ import { property, state } from 'lit/decorators';
5
+ import { INPUT_CONTROL_EVENTS } from '@phoenixRoot/components/form/input/input_constants';
6
+ import { html } from 'lit';
7
+ let HInputCopyButton = class HInputCopyButton extends PhoenixLightLitElement {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.copied = false;
11
+ this.copyValue = '';
12
+ this._handleCopyToClipboard = (ev) => {
13
+ const $inputToCopy = document.querySelector(`#${this.inputId}`);
14
+ if (!$inputToCopy)
15
+ throw new Error(`Input with id ${this.inputId} not found`);
16
+ $inputToCopy.select();
17
+ $inputToCopy.setSelectionRange(0, 99999);
18
+ this.copyValue = $inputToCopy.value;
19
+ if (navigator.clipboard) {
20
+ this._copyToClipboard($inputToCopy, ev);
21
+ }
22
+ else {
23
+ this._copyToClipboardFallback($inputToCopy, ev);
24
+ }
25
+ };
26
+ this._handleInputCopyEvent = (event) => {
27
+ this.dispatchEvent(new CustomEvent(INPUT_CONTROL_EVENTS.copy, {
28
+ detail: event,
29
+ bubbles: true
30
+ }));
31
+ };
32
+ this._runCopyAnimation = ($inputToCopy) => {
33
+ setTimeout(() => {
34
+ $inputToCopy.value = this.copyValue;
35
+ this.copyValue = '';
36
+ this.copied = false;
37
+ }, 200);
38
+ };
39
+ }
40
+ connectedCallback() {
41
+ super.connectedCallback();
42
+ this.addEventListener('click', this._handleCopyToClipboard);
43
+ }
44
+ render() {
45
+ super.render();
46
+ return html `
47
+ ${this.copied ? this.getSlot('copy-pending') : this.getSlot('copy-success')}
48
+ `;
49
+ }
50
+ _copyToClipboard($inputToCopy, ev) {
51
+ navigator.clipboard.writeText(this.copyValue)
52
+ .then(() => {
53
+ this._handleCopySuccess($inputToCopy);
54
+ this._handleInputCopyEvent(ev);
55
+ })
56
+ .catch(() => {
57
+ this._handleCopyError($inputToCopy);
58
+ });
59
+ }
60
+ _copyToClipboardFallback($inputToCopy, ev) {
61
+ try {
62
+ const hasBeenCopied = document.execCommand('copy');
63
+ if (!hasBeenCopied)
64
+ throw new Error();
65
+ this._handleCopySuccess($inputToCopy);
66
+ this._handleInputCopyEvent(ev);
67
+ }
68
+ catch (err) {
69
+ this._handleCopyError($inputToCopy);
70
+ }
71
+ }
72
+ _handleCopySuccess($inputToCopy) {
73
+ if (this.inputTextSuccess)
74
+ $inputToCopy.value = this.inputTextSuccess;
75
+ this.copied = true;
76
+ this._runCopyAnimation($inputToCopy);
77
+ }
78
+ _handleCopyError($inputToCopy) {
79
+ if (this.inputTextError)
80
+ $inputToCopy.value = this.inputTextError;
81
+ this.copied = false;
82
+ this._runCopyAnimation($inputToCopy);
83
+ }
84
+ };
85
+ __decorate([
86
+ property({ type: String, attribute: 'input-id' }),
87
+ __metadata("design:type", String)
88
+ ], HInputCopyButton.prototype, "inputId", void 0);
89
+ __decorate([
90
+ property({ type: String, attribute: 'input-text-success' }),
91
+ __metadata("design:type", String)
92
+ ], HInputCopyButton.prototype, "inputTextSuccess", void 0);
93
+ __decorate([
94
+ property({ type: String, attribute: 'input-text-error' }),
95
+ __metadata("design:type", String)
96
+ ], HInputCopyButton.prototype, "inputTextError", void 0);
97
+ __decorate([
98
+ state(),
99
+ __metadata("design:type", Object)
100
+ ], HInputCopyButton.prototype, "copied", void 0);
101
+ __decorate([
102
+ state(),
103
+ __metadata("design:type", Object)
104
+ ], HInputCopyButton.prototype, "copyValue", void 0);
105
+ HInputCopyButton = __decorate([
106
+ phoenixCustomElement('h-input-copy-button')
107
+ ], HInputCopyButton);
108
+ export { HInputCopyButton };
109
+ //# sourceMappingURL=input_copy_buton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input_copy_buton.js","sourceRoot":"","sources":["../../../../../../../../src/components/form/input/input_copy_buton.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,sBAAsB;IAA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AC,YAAY,CAAC,CAAC;IACzC,CAAC;IAEO,gBAAgB,CAAC,YAA8B;QACnD,IAAI,IAAI,CAAC,cAAc;YACnB,YAAY,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC;QAE7C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACzC,CAAC;CAmBJ,CAAA;AA1GG;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;;iDAC3B;AAGvB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;;0DAC5B;AAGhC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;;wDAC5B;AAG9B;IADC,KAAK,EAAE;;gDACc;AAGtB;IADC,KAAK,EAAE;;mDACc;AAdb,gBAAgB;IAD5B,oBAAoB,CAAC,qBAAqB,CAAC;GAC/B,gBAAgB,CA4G5B;SA5GY,gBAAgB"}
@@ -23,6 +23,9 @@ class BaseMessage extends PhoenixLightLitElement {
23
23
  this._positionMessage = () => {
24
24
  requestAnimationFrame(() => {
25
25
  var _a;
26
+ // tu coś zrobiłem
27
+ // trzeba zbadać czy na starej wersji kiedy tego jeszcze nie było działało poprawnie
28
+ // bo obecnie tooltipy w modalach i dropdownach się nie pokazują pomimo poprawnego pozycjonowania
26
29
  (_a = this._$messageContent) === null || _a === void 0 ? void 0 : _a.setAttribute('direction', this._positionController.position(true));
27
30
  });
28
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,6 +1,7 @@
1
1
  import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
2
2
  export declare class BaseMessageContent extends PhoenixLightLitElement {
3
3
  portalTarget: string;
4
+ constructor();
4
5
  connectedCallback(): void;
5
6
  private _setupAriaAttributes;
6
7
  }
@@ -6,12 +6,12 @@ import { DEFAULT_MESSAGE_PORTAL_NAME, MESSAGE_CONTENT_SLOT_NAME } from './base_m
6
6
 
7
7
  class BaseMessageContent extends PhoenixLightLitElement {
8
8
  constructor() {
9
- super(...arguments);
9
+ super();
10
10
  this.portalTarget = DEFAULT_MESSAGE_PORTAL_NAME;
11
+ this.slot = MESSAGE_CONTENT_SLOT_NAME;
11
12
  }
12
13
  connectedCallback() {
13
14
  super.connectedCallback();
14
- this.slot = MESSAGE_CONTENT_SLOT_NAME;
15
15
  this._setupAriaAttributes();
16
16
  }
17
17
  _setupAriaAttributes() {
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.10.2",
5
+ "version": "1.10.3-0",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "@splidejs/splide": "^4.0.7"
31
31
  },
32
32
  "devDependencies": {
33
- "@dreamcommerce/utilities": "^1.16.0",
33
+ "@dreamcommerce/utilities": "^1.17.0",
34
34
  "@shoper/jest_config": "^0.0.0",
35
35
  "@shoper/tsconfig": "^0.0.0",
36
36
  "@splidejs/splide": "4.0.7",